#!/usr/bin/env node

const cp = require('child_process');

console.log(`I am father process.PID:${process.pid}`);
//const cat = cp.spawn('node',['03-child.js']);
const cat = cp.spawn('node',['03-child.js'],{detach:true,stdio:[0,1,2]});

setTimeout(() => {
  console.log('father : bye!');
  process.exit();
},5000);


//cat.stdout.pipe(process.stdout);
//cat.stderr.pipe(process.stderr);
